package com.mall.db.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author wxd
 * @since 2021-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_category")
public class Category extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String imagePath;

    private String picturePath;

    private String content;

    /**
     * 类目级别  1:一级类目  2:二级类目
     */
    private Integer level;

    /**
     * 父类目id
     */
    private Integer pid;

    /**
     * 关键词ID
     */
    private Integer kid;

    /**
     * 关键词
     */
    @TableField(exist = false)
    private String keyword;



}
